package novel.manager.pojo.spider;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 线程配置
 */
@Getter@Setter@ToString@AllArgsConstructor@NoArgsConstructor@EqualsAndHashCode
public class ThreadConfiguration implements Serializable {
	private static final long serialVersionUID = 427742653911093147L;
	/**
	 * 每个线程默认可以下载的最大章节数量
	 */
	public static final int DEFAULT_SIZE = 100;
	/**
	 * 每个线程下载每一章所允许的最大尝试次数
	 */
	public static final int DEFAULT_TRY_TIMES = 3;
	/**
	 * 下载后的文件保存的基地址 d:/opt/bxwx.org/完美世界/1-2.txt ....
	 */
	private String path;
	/**
	 * 每个线程能够下载的最大章节数量
	 */
	private int size = 100;
	private int tryTimes = 3;
}
